#include<stdio.h>
int main()
{
	int number = 678;
	while (number != 0)
	{
		int a;
		a = number % 10;
		number = number / 10;
		printf("%d", a);
		
		
		
	}






	return 0;
}